package com.yh.patterns.command.job;

/**
 * @Author:yh
 * @Description:测试类
 */
public class Client {
    public static void main(String[] args) {
        FunctionButton functionButton=new FunctionButton();
        Command helpCommand = new HelpCommand();
        functionButton.setCommand(helpCommand);
        functionButton.click();

        System.out.println("=========");
        Command exitCommand = new ExitCommand();
        functionButton.setCommand(exitCommand);
        functionButton.click();
    }
}
